package com.kimho.cost.domain;
import java.io.Serializable;
import java.util.Date;

public class Cost implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String cost_id;
	private String deal_id;
	private String staff_id;
	private String cost_type;
	private double saf_fee;
	private String object_id;
	private String obj_name;
	private String objid;
	private String cost_brief;
	private Date op_time;
	private double traff_fee;
	private double mid_fee;
	private double oth_fee;
	private double inst_fee;
	private String today;
	private String inst_id;
	private double pay_rat;
	private double sh_pay;
	private double re_pay;
	private String settle;
	private double deduct;
	private String pay_type_x; //现付
	private String pay_type_t;//提付
	private String pay_type_q;//签单回付
	private String sh_traff_fee;//应收运费
	private String sh_inst_fee; //实收运费
	private String sh_saf_fee;	//应收保险
	private String sh_pre_fee; //垫付
	private String own_fee;//欠费
	private String re_traff_fee;
	private String re_inst_fee;
	private String re_saf_fee;
	private String in_num;//入库数
	private String in_all;
	private String truck_send;
	private String trunk_receive;
	private String obj_send;
	private String obj_cle;
	private String obj_rec;
	
	private String sum_fee;
	
	private String bill_sum_fee;
	private String bill_type;
	private String name;
	private String local_name;
	private String bill_id;
	
	
	
	
	
	public String getBill_sum_fee() {
		return bill_sum_fee;
	}
	public void setBill_sum_fee(String bill_sum_fee) {
		this.bill_sum_fee = bill_sum_fee;
	}
	public String getBill_type() {
		return bill_type;
	}
	public void setBill_type(String bill_type) {
		this.bill_type = bill_type;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getLocal_name() {
		return local_name;
	}
	public void setLocal_name(String local_name) {
		this.local_name = local_name;
	}
	public String getBill_id() {
		return bill_id;
	}
	public void setBill_id(String bill_id) {
		this.bill_id = bill_id;
	}
	public String getSum_fee() {
		return sum_fee;
	}
	public void setSum_fee(String sum_fee) {
		this.sum_fee = sum_fee;
	}
	public String getObj_rec() {
		if( null == obj_rec)
		{
			return "0";
		}
		return obj_rec;
	}
	public void setObj_rec(String obj_rec) {
		this.obj_rec = obj_rec;
	}
	public String getPay_type_x() {
		if( null == pay_type_x)
		{
			return "0";
		}
		return pay_type_x;
	}
	public void setPay_type_x(String pay_type_x) {
		this.pay_type_x = pay_type_x;
	}
	public String getPay_type_t() {
		if( null == pay_type_t)
		{
			return "0";
		}
		return pay_type_t;
	}
	public void setPay_type_t(String pay_type_t) {
		this.pay_type_t = pay_type_t;
	}
	public String getPay_type_q() {
		if( null == pay_type_q)
		{
			return "0";
		}
		return pay_type_q;
	}
	public void setPay_type_q(String pay_type_q) {
		this.pay_type_q = pay_type_q;
	}
	public String getSh_traff_fee() {
		if(null == sh_traff_fee)
		{
			return "0.0";
		}
		return sh_traff_fee;
	}
	public void setSh_traff_fee(String sh_traff_fee) {
		this.sh_traff_fee = sh_traff_fee;
	}
	public String getSh_inst_fee() {
		if(null == sh_inst_fee)
		{
			return "0.0";
		}
		return sh_inst_fee;
	}
	public void setSh_inst_fee(String sh_inst_fee) {
		this.sh_inst_fee = sh_inst_fee;
	}
	public String getSh_saf_fee() {
		if(null == sh_saf_fee)
		{
			return "0.0";
		}
		return sh_saf_fee;
	}
	public void setSh_saf_fee(String sh_saf_fee) {
		this.sh_saf_fee = sh_saf_fee;
	}
	public String getSh_pre_fee() {
		if(null == sh_pre_fee)
		{
			return "0.0";
		}
		return sh_pre_fee;
	}
	public void setSh_pre_fee(String sh_pre_fee) {
		this.sh_pre_fee = sh_pre_fee;
	}
	public String getOwn_fee() {
		if(null == own_fee)
		{
			return "0.0";
		}
		return own_fee;
	}
	public void setOwn_fee(String own_fee) {
		this.own_fee = own_fee;
	}
	public String getRe_traff_fee() {
		if(null == re_traff_fee)
		{
			return "0.0";
		}
		return re_traff_fee;
	}
	public void setRe_traff_fee(String re_traff_fee) {
		this.re_traff_fee = re_traff_fee;
	}
	public String getRe_inst_fee() {
		if(null == re_inst_fee)
		{
			return "0.0";
		}
		return re_inst_fee;
	}
	public void setRe_inst_fee(String re_inst_fee) {
		this.re_inst_fee = re_inst_fee;
	}
	public String getRe_saf_fee() {
		if(null == re_saf_fee)
		{
			return "0.0";
		}
		return re_saf_fee;
	}
	public void setRe_saf_fee(String re_saf_fee) {
		this.re_saf_fee = re_saf_fee;
	}
	public String getIn_num() {
		if(null == in_num)
		{
			return "0";
		}
		return in_num;
	}
	public void setIn_num(String in_num) {
		this.in_num = in_num;
	}
	public String getIn_all() {
		if(null == in_all)
		{
			return "0";
		}
		return in_all;
	}
	public void setIn_all(String in_all) {
		this.in_all = in_all;
	}
	public String getTruck_send() {
		if(null == truck_send)
		{
			return "0";
		}
		return truck_send;
	}
	public void setTruck_send(String truck_send) {
		this.truck_send = truck_send;
	}
	public String getTrunk_receive() {
		if(null == trunk_receive)
		{
			return "0";
		}
		return trunk_receive;
	}
	public void setTrunk_receive(String trunk_receive) {
		this.trunk_receive = trunk_receive;
	}
	public String getObj_send() {
		if(null == obj_send)
		{
			return "0";
		}
		return obj_send;
	}
	public void setObj_send(String obj_send) {
		this.obj_send = obj_send;
	}
	public String getObj_cle() {
		if(null == obj_cle)
		{
			return "0.0";
		}
		return obj_cle;
	}
	public void setObj_cle(String obj_cle) {
		this.obj_cle = obj_cle;
	}
	public double getDeduct() {
		return deduct;
	}
	public void setDeduct(double deduct) {
		this.deduct = deduct;
	}
	public String getToday() {
		if( null == today)
			return "0.0";
		return today;
	}
	public String getLast_week() {
		if( null == last_week)
			return "0.0";
		return last_week;
	}
	public String getLast_month() {
		if( null == last_month)
			return "0.0";
		return last_month;
	}
	public void setToday(String today) {
		this.today = today;
	}
	public void setLast_week(String last_week) {
		this.last_week = last_week;
	}
	public void setLast_month(String last_month) {
		this.last_month = last_month;
	}
	private String last_week;
	private String last_month;
	private String obj_num;
	private String from_name;
	private String to_name;
	private String d_traff_fee;
	private String d_mid_fee;
	private String d_saf_fee;
	private String d_inst_fee;
	private String d_oth_fee;
	public String getInst_id() {
		return inst_id;
	}
	public void setInst_id(String inst_id) {
		this.inst_id = inst_id;
	}
	public double getPay_rat() {
		return pay_rat;
	}
	public void setPay_rat(double pay_rat) {
		this.pay_rat = pay_rat;
	}
	public double getSh_pay() {
		return sh_pay;
	}
	public void setSh_pay(double sh_pay) {
		this.sh_pay = sh_pay;
	}
	public double getRe_pay() {
		return re_pay;
	}
	public void setRe_pay(double re_pay) {
		this.re_pay = re_pay;
	}
	private String pre_fee;
	private double t_traff_fee;
	private double t_mid_fee;
	private double t_oth_fee;
	private double t_inst_fee;
	private double t_saf_fee;
	private String to_tell;
	private String cost_name;
	private double all_debt_fee;
	private String sum_traff_fee;
	private String sum_saf_fee;
	private String sum_oth_fee;
	private String sum_inst_fee;
	private String sum_mid_fee;
	private String sum_t_traff_fee;
	private String sum_t_saf_fee;
	private String sum_t_oth_fee;
	public String getSum_mid_fee() {
		return sum_mid_fee;
	}
	public void setSum_mid_fee(String sum_mid_fee) {
		this.sum_mid_fee = sum_mid_fee;
	}
	public String getSum_t_traff_fee() {
		if( null == sum_t_traff_fee)
			return "0.0";
		return sum_t_traff_fee;
	}
	public void setSum_t_traff_fee(String sum_t_traff_fee) {
		this.sum_t_traff_fee = sum_t_traff_fee;
	}
	public String getSum_t_saf_fee() {
		if( null == sum_t_saf_fee)
			return "0.0";
		return sum_t_saf_fee;
	}
	public void setSum_t_saf_fee(String sum_t_saf_fee) {
		this.sum_t_saf_fee = sum_t_saf_fee;
	}
	public String getSum_t_oth_fee() {
		if( null == sum_t_oth_fee)
			return "0.0";
		return sum_t_oth_fee;
	}
	public void setSum_t_oth_fee(String sum_t_oth_fee) {
		this.sum_t_oth_fee = sum_t_oth_fee;
	}
	public String getSum_t_inst_fee() {
		if( null == sum_t_inst_fee)
			return "0.0";
		return sum_t_inst_fee;
	}
	public void setSum_t_inst_fee(String sum_t_inst_fee) {
		this.sum_t_inst_fee = sum_t_inst_fee;
	}
	public String getSum_t_mid_fee() {
		if( null == sum_t_mid_fee)
			return "0.0";
		return sum_t_mid_fee;
	}
	public void setSum_t_mid_fee(String sum_t_mid_fee) {
		this.sum_t_mid_fee = sum_t_mid_fee;
	}
	private String sum_t_inst_fee;
	private String sum_t_mid_fee;
	
	public String getSum_traff_fee() {
		return sum_traff_fee;
	}
	public void setSum_traff_fee(String sum_traff_fee) {
		this.sum_traff_fee = sum_traff_fee;
	}
	public String getSum_saf_fee() {
		return sum_saf_fee;
	}
	public void setSum_saf_fee(String sum_saf_fee) {
		this.sum_saf_fee = sum_saf_fee;
	}
	public String getSum_oth_fee() {
		return sum_oth_fee;
	}
	public void setSum_oth_fee(String sum_oth_fee) {
		this.sum_oth_fee = sum_oth_fee;
	}
	public String getSum_inst_fee() {
		return sum_inst_fee;
	}
	public void setSum_inst_fee(String sum_inst_fee) {
		this.sum_inst_fee = sum_inst_fee;
	}
	public String getSettle() {
		return settle;
	}
	public void setSettle(String settle) {
		this.settle = settle;
	}
	public double getAll_debt_fee() {
		return all_debt_fee=this.saf_fee+this.oth_fee+this.inst_fee+this.mid_fee+this.traff_fee-this.t_inst_fee-this.t_traff_fee-this.t_mid_fee-this.saf_fee-this.oth_fee;
	}
	public void setAll_debt_fee(double all_debt_fee) {
		this.all_debt_fee = all_debt_fee;
	}
	public String getCost_name() {
		return cost_name;
	}
	public void setCost_name(String cost_name) {
		this.cost_name = cost_name;
	}
	public String getTo_tell() {
		return to_tell;
	}
	public void setTo_tell(String to_tell) {
		this.to_tell = to_tell;
	}
	public String getPre_fee() {
		return pre_fee;
	}
	public void setPre_fee(String pre_fee) {
		this.pre_fee = pre_fee;
	}
	public String getObj_name() {
		return obj_name;
	}
	public void setObj_name(String obj_name) {
		this.obj_name = obj_name;
	}
	public String getObjid() {
		return objid;
	}
	public void setObjid(String objid) {
		this.objid = objid;
	}
	public String getObj_num() {
		return obj_num;
	}
	public void setObj_num(String obj_num) {
		this.obj_num = obj_num;
	}
	public String getFrom_name() {
		return from_name;
	}
	public void setFrom_name(String from_name) {
		this.from_name = from_name;
	}
	public String getTo_name() {
		return to_name;
	}
	public void setTo_name(String to_name) {
		this.to_name = to_name;
	}
	public String getD_traff_fee() {
		return d_traff_fee=this.traff_fee+"/"+this.t_traff_fee;
	}
	public void setD_traff_fee(String d_traff_fee) {
		this.d_traff_fee = d_traff_fee;
	}
	public String getD_mid_fee() {
		return d_mid_fee=this.mid_fee+"/"+this.t_mid_fee;
	}
	public void setD_mid_fee(String d_mid_fee) {
		this.d_mid_fee = d_mid_fee;
	}
	public String getD_saf_fee() {
		return d_saf_fee=this.saf_fee+"/"+this.t_saf_fee;
	}
	public void setD_saf_fee(String d_saf_fee) {
		this.d_saf_fee = d_saf_fee;
	}
	public String getD_inst_fee() {
		return d_inst_fee=this.inst_fee+"/"+this.t_inst_fee;
	}
	public void setD_inst_fee(String d_inst_fee) {
		this.d_inst_fee = d_inst_fee;
	}
	public String getD_oth_fee() {
		return d_oth_fee =  this.oth_fee+"/"+this.t_oth_fee;
	}
	public void setD_oth_fee(String d_oth_fee) {
		this.d_oth_fee = d_oth_fee;
	}
	
	public double getT_traff_fee() {
		return t_traff_fee;
	}
	public void setT_traff_fee(double t_traff_fee) {
		this.t_traff_fee = t_traff_fee;
	}
	public double getT_mid_fee() {
		return t_mid_fee;
	}
	public void setT_mid_fee(double t_mid_fee) {
		this.t_mid_fee = t_mid_fee;
	}
	public double getT_oth_fee() {
		return t_oth_fee;
	}
	public void setT_oth_fee(double t_oth_fee) {
		this.t_oth_fee = t_oth_fee;
	}
	public double getT_inst_fee() {
		return t_inst_fee;
	}
	public void setT_inst_fee(double t_inst_fee) {
		this.t_inst_fee = t_inst_fee;
	}
	public double getT_saf_fee() {
		return t_saf_fee;
	}
	public void setT_saf_fee(double t_saf_fee) {
		this.t_saf_fee = t_saf_fee;
	}
	public String getCost_type() {
		return cost_type;
	}
	public void setCost_type(String cost_type) {
		this.cost_type = cost_type;
	}
	public double getSaf_fee() {
		return saf_fee;
	}
	public void setSaf_fee(double saf_fee) {
		this.saf_fee = saf_fee;
	}
	public double getTraff_fee() {
		return traff_fee;
	}
	public void setTraff_fee(double traff_fee) {
		this.traff_fee = traff_fee;
	}
	public double getMid_fee() {
		return mid_fee;
	}
	public void setMid_fee(double mid_fee) {
		this.mid_fee = mid_fee;
	}
	public double getOth_fee() {
		return oth_fee;
	}
	public void setOth_fee(double oth_fee) {
		this.oth_fee = oth_fee;
	}
	public double getInst_fee() {
		return inst_fee;
	}
	public void setInst_fee(double inst_fee) {
		this.inst_fee = inst_fee;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	/**********************冗余字段,不参与持久化*****************************/

	
	public Date getOp_time() {
		return op_time;
	}
	public void setOp_time(Date op_time) {
		this.op_time = op_time;
	}
	public String getCost_id() {
		return cost_id;
	}
	public void setCost_id(String cost_id) {
		this.cost_id = cost_id;
	}
	public String getDeal_id() {
		return deal_id;
	}
	public void setDeal_id(String deal_id) {
		this.deal_id = deal_id;
	}
	public String getStaff_id() {
		return staff_id;
	}
	public void setStaff_id(String staff_id) {
		this.staff_id = staff_id;
	}


	public String getCost_brief() {
		return cost_brief;
	}
	public void setCost_brief(String cost_brief) {
		this.cost_brief = cost_brief;
	}
	public String getObject_id() {
		return object_id;
	}
	public void setObject_id(String object_id) {
		this.object_id = object_id;
	}
	
	
	
}
